package kr.go.nih.biomedi.snptorrent.test;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
 
public class TOP {
 
	public static void main(String[] args) {
		Runtime rt = Runtime.getRuntime();
		Process p = null;
		try {
			p = rt.exec("python /home/chris/test.py");
			BufferedReader in = new BufferedReader(new InputStreamReader(p.getInputStream()));
 
			String cl = null;
			while ((cl = in.readLine()) != null) {
				System.out.print(cl);
				System.out.print("\n");
			}
 
			System.out.print("\n");
			in.close();
		} catch (IOException e) {
			//e.printStackTrace();
			System.out.println("error");
		}
	}
}
